﻿using Power.Models;
using Power.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Power.View
{
    /// <summary>
    /// Interaction logic for AIReviewDetail.xaml
    /// </summary>
    public partial class AIReviewDetail : UserControl
    {
        public string fromID;
        public AIReview aiReview;
        public AIReviewDetailViewModel Context;
        public WorkSpaceEntity workSpaceEntity;
        public AIReviewDetail(string fromID = null, AIReview aiReview = null, WorkSpaceEntity workSpaceEntity = null)
        {
            this.fromID = fromID;
            this.aiReview = aiReview;
            this.workSpaceEntity = workSpaceEntity;
            InitializeComponent();
            Context = new AIReviewDetailViewModel(this);
            this.DataContext = Context;
        }

        private void block_GotFocus(object sender, RoutedEventArgs e)
        {
            Context.OnBlockClick((Button)sender);
        }
    }
}
